package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.SugStaffMapper;
import com.ruoyi.ies.domain.SugStaff;
import com.ruoyi.ies.service.ISugStaffService;

/**
 * 员工反馈Service业务层处理
 * 
 * @author July
 * @date 2023-06-09
 */
@Service
public class SugStaffServiceImpl implements ISugStaffService 
{
    @Autowired
    private SugStaffMapper sugStaffMapper;

    /**
     * 查询员工反馈
     * 
     * @param sugId 员工反馈主键
     * @return 员工反馈
     */
    @Override
    public SugStaff selectSugStaffBySugId(Long sugId)
    {
        return sugStaffMapper.selectSugStaffBySugId(sugId);
    }

    /**
     * 查询员工反馈列表
     * 
     * @param sugStaff 员工反馈
     * @return 员工反馈
     */
    @Override
    public List<SugStaff> selectSugStaffList(SugStaff sugStaff)
    {
        return sugStaffMapper.selectSugStaffList(sugStaff);
    }

    /**
     * 新增员工反馈
     * 
     * @param sugStaff 员工反馈
     * @return 结果
     */
    @Override
    public int insertSugStaff(SugStaff sugStaff)
    {
        return sugStaffMapper.insertSugStaff(sugStaff);
    }

    /**
     * 修改员工反馈
     * 
     * @param sugStaff 员工反馈
     * @return 结果
     */
    @Override
    public int updateSugStaff(SugStaff sugStaff)
    {
        return sugStaffMapper.updateSugStaff(sugStaff);
    }

    /**
     * 批量删除员工反馈
     * 
     * @param sugIds 需要删除的员工反馈主键
     * @return 结果
     */
    @Override
    public int deleteSugStaffBySugIds(Long[] sugIds)
    {
        return sugStaffMapper.deleteSugStaffBySugIds(sugIds);
    }

    /**
     * 删除员工反馈信息
     * 
     * @param sugId 员工反馈主键
     * @return 结果
     */
    @Override
    public int deleteSugStaffBySugId(Long sugId)
    {
        return sugStaffMapper.deleteSugStaffBySugId(sugId);
    }
}
